import request from "../utils/request"


// request.get(url,config)
// request.post(url,data,config)

export const getBannerListAPI = (params) => request.get("/banner/list", { params: params });
export const delBannerListAPI = (params) => request.get("/banner/delete", { params: params });
export const clearBannerListAPI = (params) => request.get("/banner/removeAll", { params: params });

export const addBannerAPI = (params) => request.post("/banner/add", params);
export const updateBannerFlagAPI = (params) => request.post("/banner/updateFlag", params);

